//
//  YHProgressHUD.m
//  YSSmartHome
//
//  Created by yanghao on 2016/10/21.
//  Copyright © 2016年 yahaong. All rights reserved.
//

#import "YHProgressHUD.h"
#import "SVProgressHUD.h"
@implementation YHProgressHUD

+ (void)initialize
{
    [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeBlack];
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD setMinimumDismissTimeInterval:1];
}
+ (void)showInfo:(NSString *)info
{
    [SVProgressHUD showImage:nil status:info];
}
+ (void)showErrorWithStatus:(NSString*)status {
    [SVProgressHUD showErrorWithStatus:status];
}
+ (void)showSuccessWithStatus:(NSString*)status {
    [SVProgressHUD showSuccessWithStatus:status];
}
+ (void)dismiss
{
    [SVProgressHUD dismiss];
}
+ (void)show
{
    [SVProgressHUD show];
   
}

+ (void)dismissWithDelay:(NSTimeInterval)delay {
    [SVProgressHUD dismissWithDelay:delay];
}

@end
